<div class="catalog-sidebar">
            <div class="sidebar-caption">Категория</div>
<ul class="catalog-category">
    <? foreach($this->categories as $category):?>
        <li><h3><a class="icon-<?=$category['rewrite']; ?><? if($this->selected == $category['id'])print ' active'; ?>" title="Каталог <?= $category['name']; ?>" href="catalog/<?= $category['rewrite'] ?>"><?= $category['name']; ?></a></h3></li>
    <? endforeach; ?>
</ul>
</div>